home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.3 KB | 46 lines | [TEXT/GEOL] |
- Item 5805966 22-Feb-91 15:50PST
-
- From: MOOF Rollin, Keith A
-
- To: MACAPP.TECH$ MacApp Technical
-
- ------------------------------------------------------------------------------
-
- Sub: Re-CFront/CopyBits Error Probl
-
- Bill K. writes:
- -----
- I'm new to MacApp/C++ and I was trying to implement a CopyBits() call in a
- Draw() method but keep getting an error from CFront during compilation. I've
- stripped the routine down to its bare bones:
-
- #include <QuickDraw.h>
-
- pascal void DrawMap(BitMap *srcMap, BitMap *dstMap, Rect *srcRect, Rect
- *dstRect);
-
- pascal void DrawMap(BitMap *srcMap, BitMap *dstMap, Rect *srcRect, Rect
- *dstRect)
- {
- CopyBits(srcMap, dstMap, srcRect, dstRect, srcCopy, 0L);
- }
-
- and still get the error:
-
- File "ZippyWorld:sample.cp"; line 7 # internal << CFront Version 1.0 (9/11/90;
- AT&T 2.0) ©Apple Computer, Inc. 1989-90 >> error: check( 4848912, 0, 136)
- -----
-
- Bill,
-
- I tried this out, and got the same results you did. I then looked up the
- declaration for CopyBits. It's describes as taking a RgnHandle as the last
- parameter, not a long. So I change the last parameter to "nil", and everything
- worked out OK.
-
- I don't know why AT&T thinks "error: check( 5976738, 0, 136)" is a lucid
- message...
-
- - Keith
-
-